<div class="cadremedicament">
<?php

$dossierId = getParameter("dossierId");
	if ($dossierId){ 
$rs=ew_LoadRecordset("SELECT
cabinet_etatgeneral.libelle,
cabinet_medicaments.libelle as medoc
FROM
cabinet_dossier
INNER JOIN cabinet_etatgeneral ON cabinet_etatgeneral.id = cabinet_dossier.etatGenerale
INNER JOIN cabinet_contreindication ON cabinet_contreindication.etatId = cabinet_etatgeneral.id
INNER JOIN cabinet_medicaments ON cabinet_medicaments.id = cabinet_contreindication.medicamentId
WHERE
cabinet_dossier.id = $dossierId");

while (!$rs->EOF)
{
	
	?>
	<?=$rs->fields["medoc"]?>&nbsp;
	<?php 
	$rs->MoveNext();
}}?>

</div>
